package org.yzz.org.mapper;

import org.springframework.stereotype.Repository;
import org.yzz.base.mapper.BaseMapper;
import org.yzz.org.domain.Employee;
import org.yzz.org.dto.EmployeeDTO;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee selectByName(String username);

    List<Long> selectRoleById(Long id);

    void insertByRoleId(EmployeeDTO employeeDTO);
    List<String> queryPermissionByUserId(Long id);

    void deleteByRoleId(Long id);
}
